//
//  DGTabBar.h
//  DGTabBar
//
//  Created by yidong on 16/10/10.
//  Copyright © 2016年 东哥. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DGPathButton.h"

@class DGTabBar;

@protocol DGTabBarDelegate <NSObject>
@required
- (void)pathButton:(DGTabBar *)DGTabBar clickItemButtonAtIndex:(NSUInteger)itemButtonIndex;

@end

@interface DGTabBar : UITabBar
/** 点中button代理属性 */

@property (nonatomic , weak)id<DGTabBarDelegate> delegate;

/** 所有的弹出按钮 */
@property (nonatomic , strong)NSArray<DGPathItemButton *> *pathButtonArray;

/** 弹出动画时间*/
@property (assign, nonatomic) NSTimeInterval basicDuration;
/** 设置弹出时是否旋转   */
@property (assign, nonatomic) BOOL allowSubItemRotation;

/**  设置底部弹出的半径，默认是105 */
@property (assign, nonatomic) CGFloat bloomRadius;

/**  设置散开的角度 */
@property (assign, nonatomic) CGFloat bloomAngel;

/**  设置中间的按钮是否旋转 */
@property (assign, nonatomic) BOOL allowCenterButtonRotation;

/** 字体 */
@property (nonatomic , strong)NSString *title;




@end
